package com.wxw.BaseLibrary.element;

/**
 * Created by david on 2014-10-23.
 */
public class ListObject {
    private int ID = 0;
    private String Key = "";
    private Object Text = null;

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getKey() {
        return Key;
    }

    public void setKey(String key) {
        Key = key;
    }

    public Object getText() {
        return Text;
    }

    public void setText(Object text) {
        Text = text;
    }

    public ListObject(int id, String key, Object text) {
        ID = id;
        Key = key;
        Text = text;
    }

    public ListObject(int id, Object text) {
        this(id, "", text);
    }

    public ListObject(String key, Object text) {
        this(0, key, text);
    }

    @Override
    public String toString() {
        return Text.toString();
    }
}
